import { BasicColumn, FormSchema } from "/@/components/Table";
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '手机号',
    align: "center",
    width: 120,
    dataIndex: 'phone'
  },
  {
    title: '姓名',
    align: "center",
    width: 100,
    dataIndex: 'realname'
  },
  {
    title: '操作权限',
    align: "center",
    width: 80,
    dataIndex: 'businessOptAuth',
    slots: { customRender: "optAuthSlot" }
  },
  {
    title: '登录时间',
    align: "center",
    width: 140,
    dataIndex: 'loginTime',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '登录IP',
    align: "center",
    width: 100,
    dataIndex: 'loginIp',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '登录次数',
    align: "center",
    width: 80,
    dataIndex: 'loginNum',
    customRender:({text}) =>{
      return !text ? "0" : text;
    },
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [

];
